﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Configuration;
using Axe.Web.Controls.Configuration;

namespace Axe.Web.Controls
{
    public class WikiConfiguration : ConfigurationElement
    {
        [ConfigurationProperty("appearance", IsRequired=true)]
        public WikiAppearanceConfiguration Appearance
        {
            get { return (WikiAppearanceConfiguration)base["appearance"]; }
            set { base["appearance"] = value; }
        }

        [ConfigurationProperty("defaultProvider", IsRequired = true)]
        public string DefaultProvider
        {
            get { return (string)base["defaultProvider"]; }
            set { base["defaultProvider"] = value; }
        }

        [ConfigurationProperty("providers")]
        public WikiContentProvidersCollection Providers
        {
            get { return (WikiContentProvidersCollection)base["providers"]; }
            set { base["providers"] = value; }
        }
    }
}
